home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet News 2001 March
/
Internet News 2001-03 - CD-ROM.rar
/
IN200103.ISO
/
Linux
/
ETLinux
/
_7eboot-0.70a.flp
/
init
/
FLPLOAD
< prev
next >
Wrap
Text File
|
2000-03-06
|
594b
|
38 lines
#!/bin/sh
#
# flpload - loads packages from floppies
# by Matthew Franz and Antonio Garcia
#
# is a floppy mounted already?
if mount | grep fd0
then
cd /; umount /dev/fd0
fi
prompt=y
while [ "$prompt" = "y" ]
do
if mount -t msdos /dev/fd0 /floppy > /dev/null
then
cd /floppy
for file in `ls *.tgz 2> /dev/null`
do
pkgadd $file
done
cd /; umount /dev/fd0
else
echo "Disk error! Is there really a floppy?"
fi
echo
echo "REMOVE DISK NOW AND INSERT ADDITIONAL DISK "
echo "OR HIT RETURN TO END FLOPPY LOADING"
echo -n "Do you have another disk? "
read prompt
done